package com.zcy.day1.homeWork.stack;


public class StackTest {
    public static void main(String[] args) {
        StackDemo<String> stringStackDemo = new StackDemo<>();
        stringStackDemo.push("张三");
        stringStackDemo.push("李四");
        stringStackDemo.push("王五");
        stringStackDemo.push("赵六");

        System.out.println(stringStackDemo.peek());

        System.out.println(stringStackDemo.pop());
        System.out.println(stringStackDemo.pop());
        System.out.println(stringStackDemo.pop());
        System.out.println(stringStackDemo.pop());

    }
}
